x86/hvm: collect information of TSC scaling ratio
authorHaozhong Zhang <haozhong.zhang@intel.com>
Thu, 25 Feb 2016 12:00:11 +0000 (13:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2016 12:00:11 +0000 (13:00 +0100)
commitb0c0ce90eec53a031c83ad70c3181bfb92ec8b7d
tree50d849036da1afd658a26d203c1a853249a3eaa0
parent27b74b9283722dd71a7f0915efd4238f65f8f5c3
x86/hvm: collect information of TSC scaling ratio

Both VMX TSC scaling and SVM TSC ratio use the 64-bit TSC scaling ratio,
but the number of fractional bits of the ratio is different between VMX
and SVM. This patch adds the architecture code to collect the number of
fractional bits and other related information into fields of struct
hvm_function_table so that they can be used in the common code.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/time.c
xen/include/asm-x86/hvm/hvm.h